package com.wj.blog.controller;

import com.wj.blog.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:   wj
 * Date:     2020/4/9 18:55
 * Description: 测试接口
 */
@RestController
@Slf4j
public class TestController {
    @GetMapping("/test/{id}")
    public Result<Object> test(@PathVariable Integer id){
        log.info("传的数据{}",id);
        return new Result<Object>("正确");
    }
}
